@extends('frontend/layouts/flaty_to_bootstrap')

@section('content.titley')
Edit BankAccount [{{  $bank_account->id }}] ::
@parent
@stop

    @section('content.breadcrumb.inner')
    <li><a href="{{  route('home') }}"><i class="icon-home"></i> Dashboard</a><span class="divider"><i class="icon-angle-right"></i></span></li>
    <li><a href="{{  route('car_balance.bank_account.index') }}"><i class="icon-home"></i> BankAccount list</a><span class="divider"><i class="icon-angle-right"></i></span></li>
    <li class="active">Edit BankAccount [{{  $bank_account->id }}] </li>
    @stop

@section('content.main')

<p>{{ link_to_route('car_balance.bank_account.index', 'Back to BankAccount list', null, array('class' => 'btn btn-info')) }}</p>

<div class="row-fluid">
    {{ Form::open(array('route' => array('car_balance.bank_account.edit', $bank_account->id), 'class' => 'form-horizontal')) }}

    <div  class="control-group {{ $errors->first('branch_name', ' error') }}">
        <label class="control-label" for="branch_name">Branch Name</label>
        <div class="controls">
            <input class="" placeholder="Branch Name" title="Branch Name" name="branch_name" type="text" value="{{ Input::old('branch_name', $bank_account->branch_name) }}">
            {{ $errors->first('branch_name', '<span class="help-inline">:message</span>') }}
        </div>
    </div>
    <div  class="control-group {{ $errors->first('account_name', ' error') }}">
        <label class="control-label" for="account_name">Account Name</label>
        <div class="controls">
            <input class="" placeholder="Account Name" title="Account Name" name="account_name" type="text" value="{{ Input::old('account_name', $bank_account->account_name) }}">
            {{ $errors->first('account_name', '<span class="help-inline">:message</span>') }}
        </div>
    </div>
    <div  class="control-group {{ $errors->first('account_type', ' error') }}">
        <label class="control-label" for="account_type">Account Type</label>
        <div class="controls">
            <input class="" placeholder="Account Type" title="Account Type" name="account_type" type="text" value="{{ Input::old('account_type', $bank_account->account_type) }}">
            {{ $errors->first('account_type', '<span class="help-inline">:message</span>') }}
        </div>
    </div>
    <div  class="control-group {{ $errors->first('account_number', ' error') }}">
        <label class="control-label" for="account_number">Account Number</label>
        <div class="controls">
            <input class="" placeholder="Account Number" title="Account Number" name="account_number" type="text" value="{{ Input::old('account_number', $bank_account->account_number) }}">
            {{ $errors->first('account_number', '<span class="help-inline">:message</span>') }}
        </div>
    </div>

    <div class="control-group {{ $errors->first('bank_id', ' error') }}">
        <label class="control-label">Bank</label>
        <div class="controls">
            {{ Form::select('bank_id', $bank_list, Input::old('bank_id', $bank_account->bank_id), array('data-placeholder' => 'Bank', 'class' => 'chosen span6', 'name' => 'bank_id')) }}
            {{ $errors->first('bank_id', '<span class="help-inline">:message</span>') }}
        </div>
    </div>

    <div class="form-actions">
        {{  Form::submit('Submit', array('class' => 'btn btn-info')) }} &nbsp;&nbsp;
        {{  link_to_route('car_balance.bank_account.index', 'Cancel', null, array('class' => 'btn ')) }}
    </div>
    {{  Form::close() }}
@stop